package com.zhl.microservcie.order.pojo;

import java.util.List;

/**
 * @program: zhl-microservcie-parent
 * @author: zhl
 * @create: 2019-03-04
 **/

public class Order {

    private String orderId;

    private Long userId;

    private Long createTime;

    private Long updateTime;

    List<OrderDetail> orderDetails;

    public Order() {

    }


    public Order(String orderId, Long userId, Long createTime, Long updateTime) {
        this.orderId = orderId;
        this.userId = userId;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderId='" + orderId + '\'' +
                ", userId=" + userId +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", orderDetails=" + orderDetails +
                '}';
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    public List<OrderDetail> getOrderDetails() {
        return orderDetails;
    }

    public void setOrderDetails(List<OrderDetail> orderDetails) {
        this.orderDetails = orderDetails;
    }
}
